import userApi from "../api/ajax.js"

export default()=>{
    $.ajaxSetup({

        beforeSend(jqXHR){

            const  token=userApi.getToken();
            token && jqXHR.setRequestHeader("authorization",`Bearer ${token}`)

        }
    })
}